import Cookies from 'js-cookie'
import constant  from '@/utils/constant'
const TokenKey = 'Admin-Token'

export function getToken() {
  //return Cookies.get(TokenKey)
  return sessionStorage.getItem(constant.sessionstorage.key.token)
}

export function setToken(token) {
  //return Cookies.set(TokenKey, token)
   sessionStorage.setItem(constant.sessionstorage.key.token,token)
}

export function removeToken() {
  //return Cookies.remove(TokenKey)
  sessionStorage.setItem(constant.sessionstorage.key.token,"")
}
